package com.example.main.mvp.model;

import com.example.lib_core.http.BaseObserver;
import com.example.lib_core.mvp.model.BaseModel;
import com.example.main.app.MyApplication;
import com.example.main.bean.TravelsBean;
import com.example.main.mvp.contract.MainContract;

import java.util.List;

public class MainModel extends BaseModel implements MainContract.Model {

    @Override
    public void requestTravels(int page, BaseObserver<List<TravelsBean>> observer) {
        RequestNetwork(getNetWorkRetrofit().create(MyApplication.class).travelAll(page),observer);
    }

}
